import 'package:enterprise_v6_app/app/core/utils/interface.dart';
import 'package:enterprise_v6_app/app/core/utils/user_manager.dart';
import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'package:get/get.dart';

class WorkFlowChartController extends GetxController {
  /// &noScale=true : 是否全屏
  late URLRequest url;

  late InAppWebViewController inAppWebViewController;

  ///初始化数据
  initDate(String processEncoding) {
    url = URLRequest(url: Uri.parse('${Interface.workUrl}/#/phoneViewFlow?token=${UserManager.getToken()}&id=$processEncoding'));
  }

  /// webview加载完成后
  onWebViewCreated(InAppWebViewController controller) {
    inAppWebViewController = controller;
  }
}
